package org.example.constants;

/**
 * @author Kong
 * @date 2021-9-13 13:55
 */
public enum ResCode {
    SUCCESS(200,"操作成功"),
    FAILURE(999,"程序异常"),
    SYSTEM_ERROR(500,"服务器内部错误");
    private Integer code;
    private String message;

    ResCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
